import java.io.File;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

/**
 * @Author YuanYuan
 * @Date 2022/10/7
 * @Time 14:53
 */
public class TestDemo6 {
    //显示目录内容
    public static void main(String[] args) {
        File f = new File("./testDir");
        String[] results = f.list();
        System.out.println(Arrays.toString(results));
    }
}
